<?php 
    include_once '../fn.php';
    isLogin();
?>

<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <title>Settings &laquo; Admin</title>
    <link rel="stylesheet" href="../assets/vendors/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="../assets/vendors/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="../assets/vendors/nprogress/nprogress.css">
    <link rel="stylesheet" href="../assets/css/admin.css">
    <script src="../assets/vendors/nprogress/nprogress.js"></script>
</head>

<body>
    <script>
        NProgress.start()
    </script>

    <div class="main">
        <nav class="navbar">
            <button class="btn btn-default navbar-btn fa fa-bars"></button>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="profile.html"><i class="fa fa-user"></i>个人中心</a></li>
                <li><a href="login.html"><i class="fa fa-sign-out"></i>退出</a></li>
            </ul>
        </nav>
        <div class="container-fluid">
            <div class="page-title">
                <h1>网站设置</h1>
            </div>
         
            <form class="form-horizontal">
                <div class="form-group">
                    <label for="site_logo" class="col-sm-2 control-label">网站图标</label>
                    <div class="col-sm-6">
                        <input id="site_logo" name="site_logo" type="hidden">
                        <label class="form-image">
                            <input id="logo" type="file">
                            <img src="../assets/img/logo.png">
                            <i class="mask fa fa-upload"></i>
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label for="site_name" class="col-sm-2 control-label">站点名称</label>
                    <div class="col-sm-6">
                        <input id="site_name" name="site_name" class="form-control" type="type" placeholder="站点名称">
                    </div>
                </div>
                <div class="form-group">
                    <label for="site_description" class="col-sm-2 control-label">站点描述</label>
                    <div class="col-sm-6">
                        <textarea id="site_description" name="site_description" class="form-control" placeholder="站点描述" cols="30" rows="6"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label for="site_keywords" class="col-sm-2 control-label">站点关键词</label>
                    <div class="col-sm-6">
                        <input id="site_keywords" name="site_keywords" class="form-control" type="type" placeholder="站点关键词">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">评论</label>
                    <div class="col-sm-6">
                        <div class="checkbox">
                            <label><input id="comment_status" name="comment_status" type="checkbox" checked>开启评论功能</label>
                        </div>
                        <div class="checkbox">
                            <label><input id="comment_reviewed" name="comment_reviewed" type="checkbox" checked>评论必须经人工批准</label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-6">
                        <button type="submit" class="btn btn-primary">保存设置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!-- 给页面添加标记 -->
    <?php $page = 'settings' ?>

    <!-- 引入侧边栏 -->
    <?php include_once './inc/aside.php' ?>

    <script src="../assets/vendors/jquery/jquery.js"></script>
    <script src="../assets/vendors/bootstrap/js/bootstrap.js"></script>
    <script>
        NProgress.done()
    </script>
</body>

</html> 